/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;

import BO.Iter.SinhVienBO;
import DAO.Iter.SinhVienDAO;
import TableModel.Sinhvien;
import java.util.List;



/**
 *
 * @author vt
 */
public class SinhVienBOImpl implements SinhVienBO {
    private SinhVienDAO svDao;
    public String toPageNew(){
        System.out.println("New Page Them Mon Hoc");
        return "addMonHoc";
    }
    @Override
    public void edit(Sinhvien b){
        svDao.edit(b);
    }
    @Override
     public void add(Sinhvien b){
        try{
             svDao.add(b);
        }catch(Exception e){
            System.out.println(e.toString());
        }
       
    }
  @Override
    public List<Sinhvien> findAll() {
        return svDao.findAll();
    }
    public void setmhDao(SinhVienDAO gvDao) {
        this.svDao = gvDao;
    }
    
    
  
   public String movePageShow(){
        return "showPageMonHoc";
    }
    @Override
    public void delete(Sinhvien a) {
       svDao.delete(a);
    }
    
     public void setSvDao(SinhVienDAO mhDao) {
        this.svDao = mhDao;
    }
     public SinhVienDAO getSvDao() {
        return svDao;
    }
    @Override
    public Sinhvien findByNameAndId(String userName, String paawrod) {
        return null;
    }

    
    
    @Override
    public void findSinhVienByMaLop() {
     
    }

    @Override
    public Sinhvien findById(String id) {
     return  null;
    }

    @Override
    public List<Sinhvien> getListSinhVien(String malop) {
        return svDao.getListSinhVien(malop);
    }

   

   
}
